package com.cdplife.ci.config;

import org.apache.ibatis.plugin.Interceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.cdplife.ci.core.interceptor.DataAccessInterceptor;

/**
 * 返回一个bean交给spring容器，此bean为定义的mybatis数据权限拦截器
 * 将定义的mybatis拦截器交给全局Configuration
 * @author Shilin.Qu
 *
 */
@Configuration
public class DataAccessConfig {
	@Bean
	public Interceptor getInterceptor(){
		return new DataAccessInterceptor();
	}
}
